package com.gpframework.module.req.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 手机号绑定请求体
 */
@Data
@ApiModel
@Validated
public class MobileBindReq {

     @NotBlank(message = "请输入手机号")
     @ApiModelProperty(value = "手机号",required = true)
     private String mobile;

     @NotBlank(message = "请输入验证码")
     @ApiModelProperty(value = "验证码",required = true)
     private String code;

     @NotBlank(message = "请输入区号")
     @ApiModelProperty(value = "区号",required = true)
     private String areaCode;

     @NotNull(message = "请输入用户ID")
     @ApiModelProperty(value = "用户ID",required = true)
     private Long memberId;

}
